Skip to content

Conversation

@akshith30388
Copy link

This pull request adds a new class ADTFraction under com.thealgorithms.maths.
It provides arithmetic operations on fractions including addition, multiplication, reciprocal, and automatic simplification using GCD.

Features:

Immutable Java record type

Auto-simplification and negative normalization

JUnit test cases included under src/test/java/com/thealgorithms/maths/

Complexity: O(1) for all arithmetic operations.

This class follows the project’s coding style and is tested.

@github-actions
Copy link

This pull request has been automatically closed because its workflows or checks failed and it has been inactive for more than 14 days. Please fix the workflows and reopen if you'd like to continue. Merging from main/master alone does not count as activity.

@github-actions github-actions bot closed this Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant